package com.niit.onlinemusicserver.controller;

import com.niit.onlinemusicserver.common.R;
import com.niit.onlinemusicserver.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CommentController {
  @Autowired
  private CommentService commentService;

  // 获得指定歌单 ID 的评论列表
  @GetMapping("/comment/songList/detail")
  public R commentOfSongListId(@RequestParam Integer songListId) {
    return commentService.commentOfSongListId(songListId);
  }


}